package openbang.account.service.entity;


import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;

import openbang.account.service.vo.MsgFormatEnum;
import openbang.account.service.vo.MsgStatusEnum;
import openbang.account.service.vo.MsgTypeEnum;

import java.util.Date;

/**
 * The persistent class for the msg_asyn database table.
 * 
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class MsgAsyn implements IsSerializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private String msgBody="";

	@Persistent
	private Integer msgFormat=MsgFormatEnum.HTML.getCode();

	@Persistent
	private Integer msgStatus=MsgStatusEnum.HAS_SEND.getCode();

	@Persistent
	private String msgTitle="";

	@Persistent
	private Integer msgType=MsgTypeEnum.PERSON.getCode();

	private Date sendTime = new Date();

	@Persistent
	private String senderEmail="";

	@Persistent
	private Long senderId=0L;

	@Persistent
	private Date updTime = new Date();

    public MsgAsyn() {
    }

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMsgBody() {
		return this.msgBody;
	}

	public void setMsgBody(String msgBody) {
		this.msgBody = msgBody;
	}

	public Integer getMsgFormat() {
		return this.msgFormat;
	}

	public void setMsgFormat(Integer msgFormat) {
		this.msgFormat = msgFormat;
	}

	public Integer getMsgStatus() {
		return this.msgStatus;
	}

	public void setMsgStatus(Integer msgStatus) {
		this.msgStatus = msgStatus;
	}

	public String getMsgTitle() {
		return this.msgTitle;
	}

	public void setMsgTitle(String msgTitle) {
		this.msgTitle = msgTitle;
	}

	public Integer getMsgType() {
		return this.msgType;
	}

	public void setMsgType(Integer msgType) {
		this.msgType = msgType;
	}

	public Date getSendTime() {
		return this.sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public String getSenderEmail() {
		return this.senderEmail;
	}

	public void setSenderEmail(String senderEmail) {
		this.senderEmail = senderEmail;
	}

	public Long getSenderId() {
		return this.senderId;
	}

	public void setSenderId(Long senderId) {
		this.senderId = senderId;
	}

	public Date getUpdTime() {
		return this.updTime;
	}

	public void setUpdTime(Date updTime) {
		this.updTime = updTime;
	}

}